package entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.*;
import java.util.Date;

/**
 * 实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "Newscomment ", description = "实体类")
public class Newscomment {


    @ApiModelProperty(hidden = true)
    private String id;


    @NotEmpty(message = "评论内容不能为空")
    @ApiModelProperty(name = "content", value = "评论内容", example = "")
    private String content;


    @ApiModelProperty(name = "agreeNum", value = "点赞数", example = "")
    private Integer agreeNum;


    @ApiModelProperty(name = "createTime", value = "", example = "")
    private Date createTime;


    @ApiModelProperty(name = "updateTime", value = "", example = "")
    private Date updateTime;


    @NotEmpty(message = "不能为空")
    @ApiModelProperty(name = "createUserId", value = "", example = "")
    private String createUserId;


    @NotEmpty(message = "不能为空")
    @ApiModelProperty(name = "createUserNickName", value = "", example = "")
    private String createUserNickName;


    @ApiModelProperty(name = "updateUserId", value = "", example = "")
    private String updateUserId;


    @ApiModelProperty(name = "isDeleted", value = "", example = "")
    private Integer isDeleted;

    @NotEmpty(message = "被评论新闻ID不能为空")
    @ApiModelProperty(name="newsId",value="被评论新闻ID",example="")
    private String newsId;


    @ApiModelProperty(name="replyCommentId",value="被回复评论ID",example="")
    private String replyCommentId;


    @NotEmpty(message = "评论者头像不能为空")
    @ApiModelProperty(name="createUserHeadPic",value="评论者头像",example="")
    private String createUserHeadPic;

}
